let buf = Buffer.from([105, 108, 111, 118, 101, 121, 111, 117]);
//将buffer转成字符串
// console.log(buf.toString());
//buffer的读写
// console.log(buf[0]);
//修改buf的值
buf[0] = 94;
// console.log(buf.toString())
//修改值一旦超过255超过的部分就会被舍弃
buf[0] = 333;
console.log(buf[0].toString(2));//转换成二进制
console.log(buf[0]);//77

